import request from '@/utils/request'

// 查询负责人信息列表
export function listDriverInfo(query) {
  return request({
    url: '/comlbs/driverInfo/list',
    method: 'get',
    params: query
  })
}

// 查询负责人信息详细
export function getDriverInfo(id) {
  return request({
    url: '/comlbs/driverInfo/' + id,
    method: 'get'
  })
}

// 新增负责人信息
export function addDriverInfo(data) {
  return request({
    url: '/comlbs/driverInfo',
    method: 'post',
    data: data
  })
}

// 修改负责人信息
export function updateDriverInfo(data) {
  return request({
    url: '/comlbs/driverInfo',
    method: 'put',
    data: data
  })
}

// 删除负责人信息
export function delDriverInfo(id) {
  return request({
    url: '/comlbs/driverInfo/' + id,
    method: 'delete'
  })
}
